package com.manage.func.ordermanagement.returnorder.model;

import java.sql.Timestamp;

public class ReturnOrderExcelBean
{
	/**
	 * 借书单编号
	 */
	public String  orderNo;
	/**
	 * 条形码
	 */
	public String  barCode;
	/**
	 * 书名
	 */
	public String  bookTitle;
	/**
	 * 用户姓名
	 */
	public String  name;
	/**
	 * 用户手机号
	 */
	public long  uid;
	/**
	 * 创建日期
	 */
	public Timestamp  createdate;
	/**
	 * 快递单号
	 */
	public String  expresscode;
	
	/**
	 * 快递公司id
	 */
	public String  expresscompanyid;
	/**
	 * 订单状态
	 * 借书：998,999（确认）
	 * 还书：997,996（确认）
	 */
	public String  status;
	
	public ReturnOrderExcelBean()  
    {  
    }
	
	public ReturnOrderExcelBean(String orderNo,String barCode,String bookTitle,String name,long uid )  
	{  
		this.orderNo = orderNo;
		this.barCode = barCode;
		this.bookTitle = bookTitle;
		this.name = name;
		this.uid = uid;
	}
	
	public String getOrderNo()
	{
		return orderNo;
	}
	public void setOrderNo(String orderNo)
	{
		this.orderNo = orderNo;
	}
	public String getBarCode()
	{
		return barCode;
	}
	public void setBarCode(String barCode)
	{
		this.barCode = barCode;
	}
	public String getBookTitle()
	{
		return bookTitle;
	}
	public void setBookTitle(String bookTitle)
	{
		this.bookTitle = bookTitle;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public long getUid()
	{
		return uid;
	}
	public void setUid(long uid)
	{
		this.uid = uid;
	}
	public Timestamp getCreatedate()
	{
		return createdate;
	}

	public void setCreatedate(Timestamp createdate)
	{
		this.createdate = createdate;
	}

	public String getExpresscode()
	{
		return expresscode;
	}

	public void setExpresscode(String expresscode)
	{
		this.expresscode = expresscode;
	}

	public String getExpresscompanyid()
	{
		return expresscompanyid;
	}

	public void setExpresscompanyid(String expresscompanyid)
	{
		this.expresscompanyid = expresscompanyid;
	}

	public String getStatus()
	{
		return status;
	}

	public void setStatus(String status)
	{
		if(status != null && !"".equals(status))
		{
			if ("997".equals(status))
			{
				// 还书单初始状态997
				this.status = "发起还书";
			}
			else if ("102".equals(status))
			{
				// 还书单快递员更新了快递信息
				this.status = "快递更新";
			}
			else if ("996".equals(status))
			{
				// 还书单确认还书完成996
				this.status = "完成还书";
			}
			else
			{
				this.status = "未知状态";
			}
		}
		else
		{
			this.status = "";
		}
	}
}
